import request from '@/utils/request'

// 查询厂家品牌信息列表
export function listBrand(query) {
  return request({
    url: '/analysis/brand/list',
    method: 'get',
    params: query
  })
}

// 查询厂家品牌信息详细
export function getBrand(brandId) {
  return request({
    url: '/analysis/brand/' + brandId,
    method: 'get'
  })
}

// 新增厂家品牌信息
export function addBrand(data) {
  return request({
    url: '/analysis/brand',
    method: 'post',
    data: data
  })
}

// 修改厂家品牌信息
export function updateBrand(data) {
  return request({
    url: '/analysis/brand',
    method: 'put',
    data: data
  })
}

// 删除厂家品牌信息
export function delBrand(brandId) {
  return request({
    url: '/analysis/brand/' + brandId,
    method: 'delete'
  })
}


// 获取检查类型o
export function getCheckNameList(checkName) {
  return request({
    url: '/analysis/type//acquire/checkList' + '?checkName=' + checkName,
    method: 'get',
  })
}


export function selectBrandAndStrategyNameList(brandName) {
  return request({
    url: '/analysis/brand/acquire/brandList' + '?brandName=' + brandName,
    method: 'get',
  })
}

// 通过brandId来获取pdf列表
// 获取pdf文件列表
export function selectPdfUrlFileList(brandId) {
  return request({
    url: '/analysis/url/pdfUrl/FileList' + '?brandId=' + brandId,
    method: 'get',
  })
}



